package com.tuomaxu.controller;

import com.tuomaxu.service.IDMailServce;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TTController {

    @Reference
    private IDMailServce mailServce;

    @GetMapping("/t1")
    public String t1(){

        boolean send = mailServce.send("123", "4556");
        System.out.println(send);
        return "ok";
    }
}
